]> dgit.raspbian.org Git - gnome-shell.git/commit
panel: programmatic anim. control of AnimatedIcon
authorStéphane Démurget <stephane.demurget@free.fr>
Sun, 4 Nov 2012 18:47:11 +0000 (19:47 +0100)
committerStéphane Démurget <stephane.demurget@free.fr>
Mon, 5 Nov 2012 14:05:14 +0000 (15:05 +0100)
commite04a4c39231ea1418591446d9b98aad4d7bcd2de
treed2c6916d94623da8ebe0188cdcab6870bcaa4af7
parentae0821e07b93b79083c3e9fdd1ebdf3e201de9fa
panel: programmatic anim. control of AnimatedIcon

The AnimatedIcon does not have an API for controlling the animation but
relies on the :visible property changes to start and stop a timeout used
to update the frame.

This has the inconvenient of having a side effect when visible is set to
true multiple times, and is not really the API expected from such
component.

Switch to a start/stop API instead. Also, update to the first frame at
startup while we are at it, since this is the expected behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=687583
js/ui/panel.js